<?php
/**
 * 《我的通话》实现类
 *
 * @author 孙晓晔
 * @version $Id: Mobile.class.php 1035 2010-03-26 05:24:59Z sunxy $
 */
require_once(dirname(__FILE__) . '/Asterisk.class.php');

class AsteriskMy extends Asterisk {
	

	function __construct() {
		$request['update'] = '$Date: 2009/02/16 07:36:07 $';
		$request['revision'] = '$Revision: 1.1 $';

		parent::__construct($request);
	}

	/**
	 *
	 *
	 * @param Controller $controller
	 * @param array $request
	 */
	function find($controller, $request) {
		$this->pretreat($controller);

		$controller->display($request, 'tel/asterisk/my/find');
		return true;
	}

	/**
	 *
	 *
	 * @param Controller $controller
	 * @param array $request
	 */
	function findPost($controller, $request) {
		$this->pretreat($controller);

		$cdr = $request['cdr_s'];
		if (empty($cdr) || $cdr == '-') {
			$request['cdr_s'] = 'ns';
		}
		
		$data = $this->_abc($controller, $request);
		
		$controller->assign_by_ref('result', $data);
		
		$controller->display($request, 'tel/asterisk/my/list');
		return true;
	}

	/**
	 *
	 *
	 * @param Controller $controller
	 * @param array $request
	 */
	function t($controller, $request) {
		$this->pretreat($controller);

		$s = "13532789657";
		$s = "9118080085263972484";
		$s = "9966880085263972484";

		$a = $this->_number($s);
		
		print_r($a);

		logdate($controller, $request);
		return true;
	}
}
?>